#!/bin/bash

if [[ ! -d "module/pytmdb3" ]] ; then
	git clone git://github.com/wagnerrp/pytmdb3.git module/pytmdb3
fi
if [[ ! -d "module/tvdb_api" ]] ; then
	git clone git://github.com/dbr/tvdb_api.git module/tvdb_api
fi

export PYTHONPATH=`pwd`/module:`pwd`/module/tvdb_api:`pwd`/module/pytmdb3

nosetests $*
